package cur.nature.framework.core.sequence;

public class SeqIdUtil {
    private SeqIdIface seqIdIface;
    private static SeqIdUtil _self;

    public  SeqIdUtil(SeqIdIface seqIdIface) {
        _self = this;
        this.seqIdIface = seqIdIface;
    }

    public static Long generateId(final String tableName) throws Exception {
        return _self.seqIdIface.getSeqId(tableName);
//        return MircoIdUtil.generateId();
    }
}
